<?php

/**
 * Freetext form.
 *
 * @package    briefingPropel
 * @subpackage form
 * @author     Your name here
 */
class FreetextForm extends BaseFreetextForm
{
  public function configure()
  {
    parent::configure();
    
    $this->widgetSchema->setLabels(array(
        'idFreeText' => 'id free text',
        ));
    
    //more text
    $this->widgetSchema['text'] = new sfWidgetFormTextarea(array(
        'label' => 'Free text',
    ));
    $this->validatorSchema['text'] = new sfValidatorString(array(
        'required' => false
    ));
    
     //IMAGE
    $this->widgetSchema['url_image'] = new sfWidgetFormInputFile(array(
        'label' => 'Logo',
    ));
    
    $this->validatorSchema['url_image'] = new sfValidatorFile(array(
      'required'   => false,
      'path'       => sfConfig::get('sf_upload_dir').'/orders',
      'mime_types' => 'web_images',
    ));
  }
}
